package com.dep.mapper;

import com.dep.dto.req.StaffReq;
import com.dep.dto.resp.StaffResp;
import com.dep.entity.Staff;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StaffMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Staff record);

    int insertSelective(Staff record);

    Staff selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Staff record);

    int updateByPrimaryKey(Staff record);

    Long selectByStaffNo(@Param("staffNo") String staffNo);

    List<StaffResp> findPage(StaffReq req);
}